<template>
	<view class="p-11.5">
		<text v-if="title" class="text-40" text="#333333">
			{{ title }}
		</text>
		<slot />
		<view class="absolute bottom-32 wfull left-0">
			<XBottom :model-value="modelValue" :show-wechat="showWechat" @update:model-value="$emit('update:modelValue', true)">
			</XBottom>
		</view>
	</view>
</template>

<script setup lang="ts">
import XBottom from './XBottom.vue';
//接受父组件的值
const { showWechat = false } = defineProps<{ title?: string, modelValue: any, showWechat?: boolean }>()
// 改变modelValue的值
defineEmits<{ (e: 'update:modelValue', value: boolean): void }>()
</script>

<style></style>
